<?php
/// function to return the current 
/// Date of the upplied timezone
///
class GetDate
{	
	private static $dt = null;
    private static $initialized = false;
	private static function initialize()
    {
	date_default_timezone_set('Asia/Kolkata');
    	if (self::$initialized)
    		return;

        self::$dt = getdate();
    	self::$initialized = true;
		
    }
	public static function getCurrentDate($locale)
	{
	 self::initialize();
	 return self::$dt['weekday']. ", ".self::$dt['mday'] . " " . self::$dt['month']. " " . self::$dt['year'];
	}
	public static function getCurrentDateTime($locale)
	{
	self::initialize();
	return self::$dt['weekday']. ", ".self::$dt['mday'] . " " . self::$dt['month']. " " . self::$dt['year']. " ". self::$dt['hours'].":".self::$dt['minutes'].":".self::$dt['seconds'];
	}
	public static function getCurrentTime($locale)
	{
	self::initialize();
	 return  self::$dt['hours'].":".self::$dt['minutes'].":".self::$dt['seconds'];
	}
}
?>